package com.sijia.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sijia.reggie.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 杨思佳
 * @version 1.0
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    @Select("select * from category where type = #{type}")
    List<Category> findByType(int type);
}
